package com.xf.system.http.vo.user;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xf.system.constants.DateConst;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * @author xiefengf
 */
@Schema(description = "用户详情信息视图")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserDetailVO {

    @Schema(description = "主键id")
    private Long id;

    @Schema(description = "用户账号")
    private String userName;

    @Schema(description = "用户昵称")
    private String nickName;

    @Schema(description = "用户邮箱")
    private String email;

    @Schema(description = "手机号码")
    private String phoneNumber;

    @Schema(description = "用户性别（0男 1女 2未知）")
    private String gender;

    @Schema(description = "用户性别（0男 1女 2未知）-显示名称")
    private String genderName;

    @Schema(description = "帐号状态（0正常 1停用）")
    private String status;

    @Schema(description = "帐号状态（0正常 1停用）-显示名称")
    private String statusName;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "最后登录时间")
    @JsonFormat(pattern = DateConst.SIMPLE, timezone = DateConst.TIME_ZONE_GMT8)
    private Date loginDate;

    @Schema(description = "部门信息集合")
    private List<UserDeptDetailVO> deptList;

    @Schema(description = "角色信息集合")
    private List<UserRoleDetailVO> roleList;

    @Schema(description = "岗位信息集合")
    private List<UserPostDetailVO> postList;

}
